package com.java.star.novel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 小说表
 * </p>
 *
 * @author 零限Lx
 * @since 2023-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("novel_novel")
@ApiModel(value="Novel对象", description="小说表")
public class Novel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "封面图片url")
    private String coverUrl;

    @ApiModelProperty(value = "分类id")
    private Integer categoryId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "作者id")
    private Long authorId;

    @ApiModelProperty(value = "简介")
    private String briefDescription;

    @ApiModelProperty(value = "点击数")
    private Integer clickNum;

    @ApiModelProperty(value = "连载状态：0-连载中 1-已完结")
    private Integer publishState;

    @ApiModelProperty(value = "总字数")
    private Integer totalWordCount;

    @ApiModelProperty(value = "最新章节id")
    private Long newestChapterId;

    @ApiModelProperty(value = "作者的话")
    private String authorWord;

    @ApiModelProperty(value = "评论数")
    private Integer commentCount;

    @ApiModelProperty(value = "章节总数")
    private Integer chapterTotalCount;


}
